import {useContext} from 'react';
import AppContext from '../../context';
import GrandContext from '../context/grandContext';
import context from '../../context';
const Child = () => {
    const AppContextValue = useContext(AppContext);
    const GrandContextValue = useContext(GrandContext)
    return (
        <div className="border mt10">
            <p className="title">Fn--Child</p>
            <h3>{JSON.stringify(AppContextValue)}</h3>
            <h3>{JSON.stringify(GrandContextValue)}</h3>
        </div>
    )
}

export default Child;
